export const systemInfo = {
	data: () => ({
		// 状态栏高度
		statusBarHeight: 0,
		// 导航栏高度
		navigationBarHeight: 0,
		// 总体高度
		navHeight: 0,
		// 可使用窗口高度
		windowHeight: 0,
	}),

	methods: {
		// 获取设备信息
		getSystemInfo() {
			this.statusBarHeight = getApp().globalData.statusBarHeight
			this.navigationBarHeight = getApp().globalData.navigationBarHeight
			this.windowHeight = uni.getSystemInfoSync().windowHeight
			this.navHeight = getApp().globalData.navHeight
		},
	},
}
